package day8;

public class Pilot {
    private String name;

    public Pilot(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void testFly(Plane a){
        System.out.println("资深飞行员"+getName()+"开始测试飞行高度"+a.getHeight()+"米，自重"+a.getWeight()+"吨的飞机。");
        a.start();
        System.out.println("起飞测试完毕");
        a.speedup();
        System.out.println("加速测试完毕");
        a.landing();
        System.out.println("着陆测试完毕");
    }
}
